package cn.mpq.payment.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
@TableName("tb_student")
public class Student {
        @TableId(value="id",type= IdType.AUTO)
        private Integer id;

        @TableField("stu_name")
        private String stuName;

        @TableField("stu_number")
        private String stuNumber;

        private Integer gender;
        private Integer age;

        private String password;

        @TableField("stu_mobile")
        private String stuMobile;

        /**
         * 家长姓名
         */
        @TableField("par_name")
        private String parName;

        @TableField("par_mobile")
        private String parMobile;

        @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
        @TableField("create_time")
        private Date createTime;

        @TableField("is_delete")
        private Integer isDelete;

        @TableField("role_id")
        private Integer roleId;

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getStuName() {
            return stuName;
        }

        public void setStuName(String stuName) {
            this.stuName = stuName;
        }

        public String getStuNumber() {
            return stuNumber;
        }

        public void setStuNumber(String stuNumber) {
            this.stuNumber = stuNumber;
        }

        public Integer getGender() {
            return gender;
        }

        public void setGender(Integer gender) {
            this.gender = gender;
        }

        public Integer getAge() {
            return age;
        }

        public void setAge(Integer age) {
            this.age = age;
        }

        public String getPassword() {
            return password;
        }

        public void setPassword(String password) {
            this.password = password;
        }

        public String getStuMobile() {
            return stuMobile;
        }

        public void setStuMobile(String stuMobile) {
            this.stuMobile = stuMobile;
        }

        public String getParName() {
            return parName;
        }

        public void setParName(String parName) {
            this.parName = parName;
        }

        public String getParMobile() {
            return parMobile;
        }

        public void setParMobile(String parMobile) {
            this.parMobile = parMobile;
        }

        public Date getCreateTime() {
            return createTime;
        }

        public void setCreateTime(Date createTime) {
            this.createTime = createTime;
        }

        public Integer getIsDelete() {
            return isDelete;
        }

        public void setIsDelete(Integer isDelete) {
            this.isDelete = isDelete;
        }

        public Integer getRoleId() {
            return roleId;
        }

        public void setRoleId(Integer roleId) {
            this.roleId = roleId;
        }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", stuName='" + stuName + '\'' +
                ", stuNumber='" + stuNumber + '\'' +
                ", gender=" + gender +
                ", age=" + age +
                ", password='" + password + '\'' +
                ", stuMobile='" + stuMobile + '\'' +
                ", parName='" + parName + '\'' +
                ", parMobile='" + parMobile + '\'' +
                ", createTime=" + createTime +
                ", isDelete=" + isDelete +
                ", roleId=" + roleId +
                '}';
    }
}
